<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/admin/head.html"/>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});
</script>
 

</script>

</head>
<body>

<div class="box-positon">
	<div class="rpos">当前位置:  系统用户表 - 编辑</div>
	<form class="ropt">
		<input type="button" value="返回列表" onclick="history.back();"/>
	</form>
	<div class="clear"></div>
</div>
<div class="body-box">
<form method="post" action="o_tuserSave.do" id="jvForm">
<table width="100%" class="pn-ftable" cellpadding="2" cellspacing="1" 	border="0">

   <input type="hidden" name="userid" id="userid" value="${tuser.userid!?html}"/>
<tr>
		<td width="12%" class="pn-flabel pn-flabel-h">     <span  class="pn-frequired">*</span>      登录账号:
     </td>
		<td colspan="1" width="38%" class="pn-fcontent"> <input type="text" name="username"  id="username" <#if (tuser.userid)?? >readonly <#else> vld="{required:true,remote:'check_username.do',messages:{remote:'用户名已被使用'}}" </#if> maxlength="100" size="24"
 class="required " value="${tuser.username!?html}" /></td>
       </tr>   
<tr>
		<td width="12%" class="pn-flabel pn-flabel-h">     <span  class="pn-frequired">*</span>      姓名:
     </td>
		<td colspan="1" width="38%" class="pn-fcontent"> <input type="text" name="truename"  id="truename" maxlength="100" size="24"
 class="required " value="${tuser.truename!?html}" /></td>
       </tr>   
<tr>
		<td width="12%" class="pn-flabel pn-flabel-h">     <span  class="pn-frequired">*</span>      密码:
     </td>
		<td colspan="1" width="38%" class="pn-fcontent"> <input type="password" name="passwd"  id="passwd" maxlength="100" size="24"
 class="required " value="${tuser.passwd!?html}" /></td>
       </tr>   
<tr>
		<td width="12%" class="pn-flabel pn-flabel-h">     <span  class="pn-frequired">*</span>      性别:
     </td>
		<td colspan="1" width="38%" class="pn-fcontent">                  <#list sexMap?keys as idKey>
            <input type="radio" name="sex" value="${idKey}"  <#if idKey==tuser.sex!?string> checked</#if> />${sexMap[idKey]}
            </#list></td>
       </tr>   
<tr>
		<td width="12%" class="pn-flabel pn-flabel-h">     <span  class="pn-frequired">*</span>      手机:
     </td>
		<td colspan="1" width="38%" class="pn-fcontent"> <input type="text" name="phone"  id="phone" maxlength="100" size="24"
 class="required " value="${tuser.phone!?html}" /></td>
       </tr>   
<tr>
		<td width="12%" class="pn-flabel pn-flabel-h">     <span  class="pn-frequired">*</span>      邮箱:
     </td>
		<td colspan="1" width="38%" class="pn-fcontent"> <input type="text" name="email"  id="email" maxlength="100" size="24"
 class="required " value="${tuser.email!?html}" /></td>
       </tr>  
       
              <tr>
		<td width="12%" class="pn-flabel pn-flabel-h">     <span  class="pn-frequired">*</span>     角色:
     </td>
		<td colspan="1" width="38%" class="pn-fcontent"> 
<#list roleList as item>
            <input type="checkbox" name="roleIds" value="${item.roleid}" <#if roleIds!?seq_contains(item.roleid)> checked="checked"</#if>  />${item.rolename}
            </#list>
</td>
       </tr>   
             
	<tr>
		<td colspan="2" class="pn-fbutton"><input type="submit"  
			value="提交" /> &nbsp; <input type="reset" value="重置" /></td>
	</tr>
</table>
</form>
</div>
</body>
</html>